package ntu.metaweb.result;

import java.util.Vector;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XStreamAlias("xmlresponse")
public class LinkComments {
	@XStreamImplicit
	public Vector<LinkComment> linkcomment;
	
	public LinkComments(ntu.metaweb.storage.Link link) {
		this.linkcomment = new Vector<LinkComment>();
		for (String user : link.getContributors()) {
			this.linkcomment.add(new LinkComment(user, link.getUserNote(user)));
		}
	}
}
